<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>部门管理</title>
		<!--<link rel="stylesheet" type="text/css" href="css/xtsz2.css"/>-->
		<!--<link rel="stylesheet" type="text/css" href="css/jqgl.css"/>
		<link rel="stylesheet" type="text/css" href="css/jiqiguanli2.css"/>-->
		<link rel="stylesheet" type="text/css" href="css/xtsz5.css"/>
	</head>
	<body>
		<div class="main_content">
			<div class="con_left">
				<div class="l-box">
					<a href="xtsz.html">平台设置</a>
				</div>
				<div class="l-box">
					<a href="xtsz3.html">角色管理</a>
				</div>
				<div class="l-box">
					<a href="xtsz5.html">用户管理</a>
				</div>
				<div class="l-box">
					<a href="xtsz6.html">区域管理</a>
				</div>
				<div class="l-box">
					<a href="xtsz7.html">操作日志</a>
				</div>
				<div class="l-box in">
					<a href="xtsz8.html">部门管理</a>
				</div>
			</div>
			<div class="con_right fl">
				<div class="r_main">
					<form action="">
						<table border="1" cellspacing="0" cellpadding="0">
							<tr>
								<th><input onclick="_checkFormAll(this.checked)" type="checkbox"></th>
								<th>修改</th>
								<th>上升</th>
								<th>下降</th>
								<th>部门名称</th>
								<th>部门编号</th>
								<th>管理员人数</th>
							</tr>
							<tr>
								<td><input type="checkbox" name="" id="" value="" /></td>
								<td><a href="#" onclick="sendurl1('GuanLiBuMen.html','修改部门',false,420,300)"><img src="img/xiugai.png"/></a></td>
								<td><a href="#"><img src="img/shangsheng.png"/></a></td>
								<td><a href="#"><img src="img/xiajiang.png"/></a></td>
								<td class="bumen"><a href="#"><img src="img/folder.gif"/>财务部</a></td>
								<td>002</td>
								<td>0</td>
							</tr>
						</table>
						<div class="jintui">
							<a href="#" onclick="sendurl1('GuanLiBuMen.html','添加部门',false,420,300)"class="btn pltj"><span>新增</span></a>
							<a href="#" class="btn tupianxiazai"><span>删除</span></a>
						</div>
					</form>
				</div>
			</div>
			<div class="mask">
			</div>
				<div id="openWindowModal" class="modal in">   
				    <div class="modal-header">
				        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				        <h3>添加部门</h3>  
				    </div>
				    <div class="modal-body">
				    	<iframe src="" style="width: 100%;height: 99%;" frameborder="no" id="openWindowIFrame"></iframe>
				    </div>
				    <!--<div class="modal-footer">
				        <button id="openWindowBtn" class="btn btn-primary" type="submit">确 定</button>
				        <button class="btn cancel" data-dismiss="modal" aria-hidden="true" type="button">取 消</button>
				    </div>-->
				</div>
		</div>
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jqgl.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/distpicker.data.js"></script>
		<script src="js/distpicker.js"></script>
		<script src="js/main.js"></script>
		<script type="text/javascript">
			var bw=$('body').width();
			$('.mask').width(bw-247);
			function openwindow(){
				$(".mask").fadeIn();
				$("#openWindowModal").fadeIn();
			}
			$(".close").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
			})
			$(".mask").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$("#openWindowModal1").fadeOut();
			})
			$(".cancel").on('click',function(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$("#openWindowModal1").fadeOut();
			})
			function _checkFormAll(isChecked)
				{
					$(":checkbox").each(function() {
						$(this).prop("checked", isChecked);
					});
				}
			$(document).ready(function(){
				$('#openWindowBtn').click(function(e) {
					console.log($('#openWindowIFrame').contents().find("#btnSubmit").length)
					if ($('#openWindowIFrame').contents().find("#btnSubmit").length > 0){
						$('#openWindowIFrame').contents().find("#btnSubmit").click();
					}else{
			        	$('#openWindowIFrame').contents().find(":submit").click();
					}
				});
			});
			function closewindow(){
				$(".mask").fadeOut();
				$("#openWindowModal").fadeOut();
				$('#openWindowIFrame').attr('src','');
			}
		</script>
	</body>
</html>